Anyone know why a function added to user.idx doesn't want to display in a module's User menu? |
Re: User functions not showing up in User menu Menu DXL file format Each DXL file to be included in the menu must conform to the following comment convention: The first line of the file contains a // comment with a single-line description of the program, which appears in the DXL Library window. This must be followed by a /* ... */ multi-line comment which describes in more detail what the program does. This can be viewed from the DXL Library window by clicking the Describe button. Example File: $DOORSHOME/dxl/addins/acme/example.dxl // A simple example program /* This program simply displays an ack box. */ ack "This is a Menu DXL example program" |
Re: User functions not showing up in User menu adevicq - Tue Mar 31 11:48:43 EDT 2009 Yet when I tried that now it did fix the problem, so thanks! Strange that it does not always seem to be required! Regards, Strathglass. |
Re: User functions not showing up in User menu strathglass - Tue Mar 31 11:55:42 EDT 2009 |
Re: User functions not showing up in User menu Any 'correctly formed' dxl files in the folder will appear in the menu after those declared in the idx file. They usually appear in alphabetic order of the file name. Options to stop them showing are a) delete it, b) move it to a subfolder, c) change the extension from dxl, d)'malform' the heading blocks, (add a blank line). Given the comment about DOORS 9 below option 'd' may no longer work. |
Re: User functions not showing up in User menu The following is a well formed file: string aa = "DD" infoBox("DD") // This is the comment line string bb = "BB" /* This is the comment block */ You 'should' format it like this: // This is the comment line, sentence what the script does /* This is the comment block, paragraph or two about what the script does */ bla bla bla An IDX reference to a non-existent or poorly-formed file will be ignored. You cannot redirect your IDX to *.dxl files in some other folder. Encrypted files are 'poorly-formed'. I notice the menu is created when you open the module: [1] If you modify the folder contents the next module open will show the changes. [2] If your folder is far away on the network, each open visible module will slow down as it reads ALL the files therein. The comment line and comment block are displayed when browsing the DXL library. I don't recall the rules for the IDX's sibling *.hlp file, but IIRC it must not be empty but really doesn't matter what's in it. Never in the past nor now in v92 can I make a non-*.dxl file, nor a *.dxl file with improper format, display in the menu. I see no change in v9200 in this regard. I wonder why it does for the other posters.
|